package com.lv.service.bean

import android.os.Parcelable
import androidx.annotation.Keep
import com.chad.library.adapter.base.entity.MultiItemEntity
import com.luck.picture.lib.entity.LocalMedia
import kotlinx.parcelize.Parcelize

/**
 * 作者： ygx
 * 创建日期：2022/8/17 8:54 PM
 * 签名： 天行健，君子以自强不息；地势坤，君子以厚德载物。
 * -    _              _           _     _   ____  _             _ _
 * -   / \   _ __   __| |_ __ ___ (_) __| | / ___|| |_ _   _  __| (_) ___
 * -  / _ \ | '_ \ / _` | '__/ _ \| |/ _` | \___ \| __| | | |/ _` | |/ _ \
 * - / ___ \| | | | (_| | | | (_) | | (_| |  ___) | |_| |_| | (_| | | (_) |
 * -/_/   \_\_| |_|\__,_|_|  \___/|_|\__,_| |____/ \__|\__,_|\__,_|_|\___/
 *
 * You never know what you can do until you try !
 * ----------------------------------------------------------------
 *
 */
//@Parcelize
//@Keep
//class ViewTypeBean(var type: Int, var data: DisplayFacBean) : MultiItemEntity, Parcelable {
//
//
//    companion object {
//        const val PIC_TYPE = 0
//        const val VEDIO_TYPE = 1
//
//    }
//
//    override val itemType: Int
//        get() = type
//
//}

@Parcelize
@Keep
class TVIVBean(var type: Int, var data: TVIVItemBean) : MultiItemEntity, Parcelable {


    companion object {
        const val TV_TYPE = 0
        const val IV_TYPE = 1

    }

    override val itemType: Int
        get() = type

}

@Parcelize
@Keep
data class TVIVItemBean(
    var text: String? = "",
    var type: String? = "",
    val image: LocalMedia? = null,
    var tag: String? = "",
    var width: String? = "",
    var height: String? = "",
//    var border: String? = "",
) : Parcelable

@Parcelize
@Keep
data class TVIVItemStringBean(
    var text: String? = "",
    var type: String? = "",
    val image: String? = "",
    var tag: String? = "",
    var width: String? = "",
    var height: String? = "",
//    var border: String? = "",
) : Parcelable

@Parcelize
@Keep
class ViewTypeStringBean(var data: String, var type: Int = PIC_TYPE) : MultiItemEntity, Parcelable {
    companion object {
        const val PIC_TYPE = 0
        const val VEDIO_TYPE = 1
    }

    override val itemType: Int
        get() = type
}

@Parcelize
@Keep
class ViewTypeMediaRecipteBean(var data: BookReceiptItemBean, var type: Int = PIC_TYPE) :
    MultiItemEntity, Parcelable {
    companion object {
        const val PIC_TYPE = 0
        const val VEDIO_TYPE = 1
    }

    override val itemType: Int
        get() = type
}

@Parcelize
@Keep
class ViewTypeMediaPushListItemBean(var data: CompanyCashItemBean, var type: Int = PIC_TYPE) :
    MultiItemEntity, Parcelable {
    companion object {
        const val PIC_TYPE = 0
        const val VEDIO_TYPE = 1
    }

    override val itemType: Int
        get() = type
}

